package com.gk.panda.apis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gk.panda.apis.entity.eventtodo.dto.HandelEventDto;
import com.gk.panda.pojo.EventResources;

import java.util.List;

/**
 * @ClassName: EventResourcesService
 * @Description: 待办事件资源
 * @author: Sir.yang
 * @date: 2022/11/3 14:56
 * @version: 1.0
 **/
public interface EventResourcesService extends IService<EventResources> {

    /**
     * @description: 根据事件ID获取事件资源信息
     * @param: []
     * @return: java.util.List<com.gk.panda.pojo.EventResources>
     * @date: 2022/11/3 17:25
     * @version: 1.0
     *
     * @param eventId*/
    List<EventResources> getEventResourcesListByEventId(Integer eventId);

    /**
     * @description: 保存事件资源
     * @param: [HandelEventDto]
     * @return: int
     * @date: 2022/11/3 23:38
     * @version: 1.0
     **/
    int saveResourceByHandelEvent(HandelEventDto dto);

    /**
     * 保存事件资源
     * @param eventResources
     * @return
     */
    int saveResourceList(List<EventResources> eventResources);
}
